package API.DAY2;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line = "123abc456abc";
        String[] arr = line.split("[0-9]+");
        System.out.println(Arrays.toString(arr));

        line = "123.456.789";
        arr = line.split("\\.");
        System.out.println(Arrays.toString(arr));

        line = "=123=456==789====";
        arr = line.split("=");
        System.out.println(Arrays.toString(arr));
    }
}
